package ooday02;

public class AnimalTest {
    public static void main(String[] args) {
        Dog xh = new Dog("小黑",3,"黑");
        xh.eat();
        xh.drink();
        xh.lookHome();
        xh.swim();

        Chick chick = new Chick("小红",2,"红");
        chick.eat();
        chick.drink();
        chick.layEggs();

        Fish fish = new Fish("金鱼",1,"金");
        fish.eat();
        fish.drink();
        fish.swim();
    }
}
